package com.fix.entity;

public class Student {

	private Integer stid;
	private String stname;
	private String sex;
	private Integer classId;
	
	public Student(){ }
	
	public Student(Integer stid, String stname) {
		this.stid = stid;
		this.stname = stname;
	} 

	public Student(String stname, String sex, Integer classId) {
		this.stname = stname;
		this.sex = sex;
		this.classId = classId;
	}



	Classes ban;

	public Integer getStid() {
		return stid;
	}

	public void setStid(Integer stid) {
		this.stid = stid;
	}

	public String getStname() {
		return stname;
	}

	public void setStname(String stname) {
		this.stname = stname;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Integer getClassId() {
		return classId;
	}

	public void setClassId(Integer classId) {
		this.classId = classId;
	}

	public Classes getBan() {
		return ban;
	}

	public void setBan(Classes ban) {
		this.ban = ban;
	}

	@Override
	public String toString() {
		return "\nStduent [stid=" + stid + ", stname=" + stname + ", sex=" + sex + ", classId=" + classId + "]";
	}
}
